std::fmod

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       fmod( float x, float y );
(C++11 feature)
double      fmod( double x, double y );
(C++11 feature)
long double fmod( long double x, long double y );
(C++11 feature)

Computes the remainder of the division operation x/y.

[edit] Parameters

x, y - floating point values

[edit] Return value

remainder of dividing arguments

[edit] See also

div
ldiv
the quotient and remainder of integer division
(function)